package com.cn.service.Impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cn.pojo.Collect;
import net.minidev.json.JSONValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cn.pojo.ShoppingCart;
import com.cn.mapper.ShoppingCartMapper;
import com.cn.service.ShoppingCartService;
@Service
public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, ShoppingCart> implements ShoppingCartService{

@Autowired
private ShoppingCartMapper shoppingCartMapper;

    @Override
    public Page<ShoppingCart> getSelectAll(Page page, String nickName) {
        List<ShoppingCart> collects = shoppingCartMapper.getSelectAll(nickName,page);
        page.setRecords(collects);
        return page;
    }
}
